package com.chuangshi.core.vote.playervote.entity;

import com.chuangshi.core.kit.Entity;
import com.chuangshi.core.kit.Request;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.stereotype.Component;


/**
 * 投票记录
 *
 * @author ggliming
 * @date 2019-02-21
 */
@Component
@Document(collection = "player_vote_info")
public class PlayerVote extends Entity {

    public PlayerVote() {

    }

    public PlayerVote(Request request) {
        this.copy(request);
    }

    /**
     * 投票记录编号
     */
    @Id
    @Field
    private String playerVoteId;

    /**
     * 人员编号
     */
    @Field
    private String playerId;

    /**
     * 人员名称
     */
    @Field
    private String playerName;

    /**
     * 会员编号
     */
    @Field
    private String memberId;

    /**
     * 岗位名称
     */
    @Field
    private String positionName;


    public String getPlayerVoteId() {
        return playerVoteId;
    }

    public void setPlayerVoteId(String playerVoteId) {
        this.playerVoteId = playerVoteId;
    }

    public String getPlayerId() {
        return playerId;
    }

    public void setPlayerId(String playerId) {
        this.playerId = playerId;
    }

    public String getPlayerName() {
        return playerName;
    }

    public void setPlayerName(String playerName) {
        this.playerName = playerName;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

}